home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ WinXP Start Menu 1.xpl
< prev
next >
Wrap
Text File
|
2002-01-03
|
3KB
|
122 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="9"
"COUNT"="1"
"UIPATH"="Appearance\Start menu\Windows XP\Classic Start Menu"
"NAME"="Visible Items"
"VERSION"="2.01"
"LANGUAGE"="VBScript"
"OSVERSION"="000001"
"TEXT 1"="Aha! You can't see this!"
"DESCRIPTION 1"="Use this plug-in to show or hide some of the items in the Start menu."
"DESCRIPTION 2"="NOTE: Hiding the Run option will not disable the WINDOWS+R key combination, so users will still be able to access the Run command."
"AUTHOR"="Xteq Systems (Neil R. Turner)"
"CONTACTURL"="http://www.xteq.com/"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
'stupid Windows XP! Has two settings for each item. Either in Classic Logon or in New Mode! GNARF!
sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
sP2="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\"
sV1=sP2 & "StartMenuFavorites"
sV2=sP & "NoRecentDocsMenu"
sV3=sP2 & "StartMenuRun" '<>!
sV4=sP & "NoClose"
sV5=sP & "NoFind"
sV6=sP2 & "StartMenuLogoff" '<>!
sV7=sP & "NoSMHelp"
sV8=sP & "NoStartMenuEjectPC"
SUB Plugin_Initialize
Call SetUIElement(1,"Favorites")
Call ReadIt_2(1,sV1)
Call SetUIElement(2,"Documents")
Call ReadIt(2,sV2)
Call SetUIElement(3,"Run...")
Call ReadIt_2(3,sV3)
Call SetUIElement(4,"Shut Down...")
Call ReadIt(4,sV4)
Call SetUIElement(5,"Search")
Call ReadIt(5,sV5)
Call SetUIElement(6,"Log Off <username>...")
Call ReadIt_2(6,sV6)
Call SetUIElement(7,"Help")
Call ReadIt(7,sV7)
Call SetUIElement(8,"Undock PC")
Call ReadIt(8,sV8)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
Call WriteIt_2(1,sV1)
Call WriteIt(2,sV2)
Call WriteIt_2(3,sV3)
Call WriteIt(4,sV4)
Call WriteIt(5,sV5)
Call WriteIt_2(6,sV6)
Call WriteIt(7,sV7)
Call WriteIt(8,sV8)
Call IndicateSettingChange()
END SUB
Sub ReadIt(ITM,PATH1)
if RegValueExists(PATH1)=false then 'setting available?
'no setting -> item visible
Call SetUIElementEx(ITM,true)
else
i=RegReadValue(PATH1)
if i=0 then
Call SetUIElementEx(ITM,true)
end if
end if
End Sub
Sub ReadIt_2(ITM,PATH1)
if RegValueExists(PATH1)=false then 'setting available?
'no setting -> item not visible
Call SetUIElementEx(ITM,false)
else
i=RegReadValue(PATH1)
if i=1 then
Call SetUIElementEx(ITM,true)
end if
end if
End Sub
Sub WriteIt(ITM,PATH1)
b=GetUIElementEx(ITM)
if b=true then
s=RegReadValue(PATH1)
if IsEmpty(s)=false then
Call RegDeleteValue(PATH1)
end if
else
Call RegWriteValue(PATH1,1,2)
end if
End Sub
Sub WriteIt_2(ITM,PATH1)
b=GetUIElementEx(ITM)
if b=true then
Call RegWriteValue(PATH1,1,2)
else
Call RegWriteValue(PATH1,0,2)
end if
End Sub
SUB Plugin_Terminate
END SUB